home *** CD-ROM | disk | FTP | other *** search
/ Aminet 15 / Aminet 15 - Nov 1996.iso / Aminet / comm / mail / thor23_main.lha / THOR_2.3 / InstallThor < prev    next >
Text File  |  1996-05-28  |  37KB  |  1,384 lines

  1. ;*************************************************************************
  2. ;    Title:
  3. ;        InstallThor
  4. ;*************************************************************************
  5. ;    Description:
  6. ;        Commodore Installer Script for the Thor 2.3 software
  7. ;*************************************************************************
  8. ;    Author:
  9. ;        Øyvind Ellefsen - versions for THOR upto 1.22
  10. ;       Petter Nilsen   - versions for 1.25 ->
  11. ;          - parts borrowed from the Demon ISP installer for THOR 2.22
  12. ;            created by Neil Bothwick <neil@wirenet.u-net.com>
  13. ;*************************************************************************
  14. ;    Still to do:
  15. ;        - Show .readme file
  16. ;        - Warn against MultiUser
  17. ;       - Make sure all dirs are present before copying files
  18. ;
  19. ;*************************************************************************
  20. ;
  21. ;******************************************************
  22. ;***** SET UP OUR VARIABLES AND OTHER SUCH STUFF ******
  23. ;******************************************************
  24.  
  25. ; some useful variables
  26.     (set 
  27.         true             1
  28.         false             0
  29.         yes             true
  30.         no                 false
  31.         is_a_file         1
  32.         is_a_dir         2
  33.         quote             "\""
  34.         newline         "\n"
  35.         tick             "'"
  36.         nothing         ""
  37.         bbspack         0
  38.         inetpack         0
  39.         #inetpackname     "thor23_inet.lha"
  40.         #bbspackname     "thor23_bbs.lha"
  41.         classact         0
  42.         tcptype         0
  43.         uucptype         0
  44.         cpu             (database "cpu")
  45.         cpu020             (and (<> cpu "68000") (<> cpu "68010"))
  46.         v39             (>= (/ (getversion "exec.library" (resident)) 65536) 39)
  47.  
  48.         #installtext    (cat "This section of the installation is dedicated "
  49.                             "to some first-time parameters that THOR "
  50.                             "needs to have configured.\n\n"
  51.                             "Select YES if you want to continue with this "
  52.                             "configuration, otherwise NO")
  53.  
  54.         #endtcpcfgtext    (cat "After this installation is complete, start THOR "
  55.                             "and then select ConnectTHOR from the External menu.\n"
  56.                             "Press SendEvents in the ConnectTHOR window and "
  57.                             "a list of newsgroups will be collected (this will take a while).\n"
  58.                             "Afterwards, you can enter you Internet system in THOR and select "
  59.                             "Join from the Events menu to subscribe (Join) newsgroups.\n" 
  60.                             "Another SendEvents in ConnectTHOR will make sure you are subscribed "
  61.                             "to these groups.")
  62.     )
  63.  
  64. ; set up our delete options
  65.     (delopts "AskUser" "OkNoDelete" "Force")
  66.  
  67. ; some useful procedures
  68.     ; change userlevel to expert
  69.     (procedure expert_level
  70.         (
  71.             (user 2)
  72.         )
  73.     )
  74.  
  75. ; reset userlevel back to default
  76.     (procedure default_level
  77.         (
  78.             (user default-level)
  79.         )
  80.     )
  81.  
  82. ; store off userlevel
  83.     (procedure save_default_level
  84.         (
  85.             (set default-level @user-level)
  86.         )
  87.     )
  88.  
  89. ; some overused strings
  90. (set #omp (cat "One moment please..." newline))
  91.  
  92. (set #classact "\n\n\nThe following is the default Install/Update Installer\n\nProcedure for placing ClassAct on your System.")
  93.  
  94. ;********************************************************************
  95. ; ClassAct Install/Update Default Procedure by:
  96. ; Osma Ahvenlampi - Osma.Ahvenlampi@hut.fi
  97. ;********************************************************************
  98. ; I have disabled the (complete) settings
  99. (working #classact)
  100. ; ************* PLEASE COPY THIS PROCEDURE ALONG WITH THE STRINGS IT USES 
  101. ; ************* TO THE INSTALLER SCRIPT OF YOUR CLASSACT APPLICATION.
  102. ; ************* IT WILL TAKE CARE OF INSTALLING THE CLASSACT CLASSES YOU
  103. ; ************* PROVIDED WITH YOUR APPLICATION TO THE USER'S SYSTEM.
  104.  
  105. ; ClassAct installation procedure V 1.5 (12.5.96) by Osma Ahvenlampi
  106.  
  107. ; percentage of the size of included ClassAct classes versus the whole
  108. ; distribution (ie. total "complete" percentage after ClassAct is installed)
  109. (set classact-complete 50)
  110.  
  111. ; ClassAct installer scripts
  112. (set #classdest-prompt "Please select the directory where you want the ClassAct classes installed.\n(See help for details)")
  113. (set #classdest-help (cat "ClassAct is a GUI toolkit consisting of shared BOOPSI classes.\n\nSome programs require some or all of the ClassAct classes installed on your system. "
  114.     (if v39 (cat "OS 3.0 has a standard directory for BOOPSI classes, the SYS:Classes directory. It is recommended that you install ClassAct there.")
  115.             (cat "OS 2.0 does not have a standard place for disk resident BOOPSI classes. On OS 3.0 these classes are stored in the SYS:Classes directory. It is recommended that you create this directory and install ClassAct there.\nThis directory must be added in the LIBS: assign. This can be done by placing the command\nAssign >NIL: LIBS: SYS:Classes ADD\nto User-Startup. This installer will do this for you.")
  116.         )
  117.     )
  118. )
  119. (set #classes-020 "Do you want to use the OS 3.0, 020 optimised version of ClassAct?")
  120. (set #help-020 "Some ClassAct libraries have versions optimised for use on 020 or better equipped OS 3.0 or later machines. If your Amiga is such equipped, you should install these. The 68000/2.0 versions will also work, but are slightly slower.")
  121. (set #noclasses-message "The directory you selected for your ClassAct classes is not a part of the LIBS: assign.\n\nIt is necessary to add this assign so that the classes will be found properly.")
  122. (set #creating-dir "Creating directory ")
  123. (set #usbackup-prompt "User-Startup will now be backed up.")
  124. (set #usbackup-help "This installer will next make a modification in User-Startup. Before doing this the old User-Startup will be backed up to S:User-Startup.old")
  125. (set #adding-1 "Adding ")
  126. (set #adding-2 " to LIBS: assign\n")
  127. (set #adding-help "This is necessary so that the custom classes can be found.")
  128. (set #junod-button "It seems you have a late Commodore 'V42' button.gadget installed on your system.\n\nClassAct's button.gadget is far more capable than this gadget, and we recommend that you replace it. The ClassAct button.gadget is backwards compatible to the Commodore gadget. Do you wish to back up the Commodore gadget and replace it with the ClassAct version?")
  129. (set #junod-backed "The Commodore 'V42' button.gadget has been backed up with the name button.gadget.v42.\n\nThe ClassAct button.gadget will be installed in its place.")
  130. (set #junod-kept "The Commodore 'V42' button.gadget was not replaced with the more capable ClassAct version.\n\nPrograms depending on the availability of ClassAct-only features will be likely to work wrong.")
  131. (set #caprefs-message "CAPrefs is a small utility that sets some user preferences for ClassAct applications. These include the bevel style (Thin/Gadtools/Xen), window backfills, and group label details.\n\nPlease use the ClassAct GUI prefs editor to alter the default settings provided. ClassAct prefs will be installed in your system Prefs drawer.\n\n")
  132. (set #caprefs-startup-1 "Adding the command\n\n")
  133. (set #caprefs-startup-2 "\n\nTo your s:User-Startup.")
  134.  
  135. (procedure install-classact
  136. ; call this procedure to copy the classes included in the Classes directory
  137. ; in your distribution dir.
  138.     (if (exists "Classes") ; The archive contains a ClassAct library update.
  139.     (
  140.         (set comp-dest  (/ (* classact-complete 2) 10))
  141.         (set comp-libs  (/ (* classact-complete 3) 10))
  142.         (set comp-dirs  (/ (* classact-complete 4) 10))
  143.         (set comp-junod (/ (* classact-complete 5) 10))
  144.         (set comp-020   (/ (* classact-complete 6) 10))
  145.         (set comp-gad   (/ (* classact-complete 7) 10))
  146.         (set comp-im    (/ (* classact-complete 8) 10))
  147.         (set comp-prefs (/ (* classact-complete 9) 10))
  148.     
  149.         ; has the user installed ClassAct in CLASSACT: ?
  150.         (set @classact-dest (getassign "CLASSACT" "A"))
  151.         (if (= @classact-dest "") (set @classact-dest "SYS:Classes"))
  152.         
  153.         ; is ClassAct already in SYS:Classes ?
  154.         (if (or (not (exists (tackon @classact-dest "Gadgets/layout.gadget") (noreq)))
  155.                 (= @user-level 2))
  156.             ; no, ask where it should be placed
  157.             (set @classact-dest
  158.                 (askdir
  159.                     (prompt #classdest-prompt)
  160.                     (help #classdest-help)
  161.                     (default @classact-dest)
  162.                     (newpath)
  163.                 )
  164.             )
  165.         )
  166.         
  167.         (complete comp-dest)
  168.         
  169.         (if (<> (run (cat "C/CheckAssign LIBS: " @classact-dest)) 0)
  170.             (
  171.                 (message #noclasses-message)
  172.                 (if (not (exists @classact-dest))
  173.                     (makedir @classact-dest (prompt (cat #creating-dir @classact-dest)))
  174.                 )
  175.                 (set @addassign (cat "Assign >NIL: LIBS: " @classact-dest " ADD\n"))
  176.                 (startup "CLASSACT"
  177.                     (command @addassign)
  178.                     (prompt (cat #adding-1 @classact-dest #adding-2))
  179.                     (help #adding-help)
  180.                 )
  181.                 (run (@addassign))
  182.             )
  183.         )
  184.         
  185.         (complete comp-libs)
  186.         
  187.         (set @classact-gadgets (tackon @classact-dest "Gadgets"))
  188.         (set @classact-images (tackon @classact-dest "Images"))
  189.         
  190.         (if (not (exists @classact-gadgets (noreq)))
  191.             (makedir @classact-images
  192.                 (prompt (cat #creating-dir @classact-gadgets))
  193.             )
  194.         )
  195.         
  196.         (if (not (exists @classact-images (noreq)))
  197.             (makedir @classact-images
  198.                 (prompt (cat #creating-dir @classact-images))
  199.             )
  200.         )
  201.         
  202.         (complete comp-dirs)
  203.         
  204.         (if (exists "SYS:Classes/Gadgets/button.gadget")
  205.             (if (< 40 (/ (getversion "SYS:Classes/Gadgets/button.gadget") 65536))
  206.                 (if (askbool (prompt #junod-button) (help @askbool-help) (default 1))
  207.                     (
  208.                         (rename "SYS:Classes/Gadgets/button.gadget" "SYS:Classes/Gadgets/button.gadget.v42")
  209.                         (message #junod-backed)
  210.                     )
  211.                     (message #junod-kept)
  212.                 )
  213.             )
  214.         )
  215.         
  216.         (complete comp-junod)
  217.         
  218.         (if (exists "Classes/Gadgets/layout.gadget.020")
  219.             (set classes-020 (askbool (prompt #classes-020) (help #help-020) (default (and cpu020 v39))))
  220.             (set classes-020 0)
  221.         )
  222.  
  223.         (complete comp-020)
  224.         
  225.         (foreach "Classes/Gadgets" "#?.gadget"
  226.             (
  227.                 (set thislib (tackon "Classes/Gadgets" @each-name))
  228.                 (if (and classes-020 (exists (cat thislib ".020")))
  229.                     (set thislib (cat thislib ".020"))
  230.                 )
  231.                 (copylib (source thislib)
  232.                     (dest @classact-gadgets)
  233.                     (newname @each-name)
  234.                     (prompt (cat #installing @each-name))
  235.                     (help #classdest-help)
  236.                     (optional "force" "askuser")
  237.                 )
  238.             )
  239.         )
  240.         
  241.         (complete comp-gad)
  242.         
  243.         (foreach "Classes/Images" "#?.image"
  244.             (
  245.                 (set thislib (tackon "Classes/Images" @each-name))
  246.                 (if (and classes-020 (exists (cat thislib ".020")))
  247.                     (set thislib (cat thislib ".020"))
  248.                 )
  249.                 (copylib (source thislib)
  250.                     (dest @classact-images)
  251.                     (newname @each-name)
  252.                     (prompt (cat #installing @each-name))
  253.                     (help #classdest-help)
  254.                     (optional "force" "askuser")
  255.                 )
  256.             )
  257.         )
  258.         
  259.         (complete comp-im)
  260.  
  261.         (foreach "Classes" "#?.class"
  262.             (
  263.                 (set thislib (tackon "Classes" @each-name))
  264.                 (if (and classes-020 (exists (cat thislib ".020")))
  265.                     (set thislib (cat thislib ".020"))
  266.                 )
  267.                 (copylib (source thislib)
  268.                     (dest @classact-dest)
  269.                     (newname @each-name)
  270.                     (prompt (cat #installing @each-name))
  271.                     (help #classdest-help)
  272.                     (optional "force" "askuser")
  273.                 )
  274.             )
  275.         )
  276.     )
  277.     )
  278.     (if (exists "Prefs/ClassAct") ; The archive contains ClassAct prefs tools
  279.     (
  280.         (message #caprefs-message)
  281.         
  282.         (copylib (source "Prefs/CAPrefs") 
  283.             (dest "C:") 
  284.             (prompt (cat #installing "CAPrefs"))
  285.         )
  286.         (copylib (source "Prefs/ClassAct")
  287.             (dest "SYS:Prefs")
  288.             (prompt (cat #installing "ClassAct Prefs"))
  289.             (infos)
  290.         )
  291.         
  292.         (complete comp-prefs)
  293.         
  294.         (if (not (exists "ENVARC:ClassAct" (noreq)))
  295.             (
  296.                 (makedir "ENVARC:ClassAct"
  297.                     (prompt (cat #creating-dir "ENVARC:ClassAct"))
  298.                 )
  299.                 (textfile (dest "ENVARC:ClassAct/ClassAct")
  300.                     (append "")
  301.                 )
  302.             )
  303.         )
  304.                 
  305.         (set caprefs-cmd "C:CAPrefs >NIL:\n")
  306.         
  307.         (startup "CAPREFS"
  308.             (prompt (cat #caprefs-startup-1 caprefs-cmd #caprefs-startup-2))
  309.             (help #caprefs-message)
  310.             (command caprefs-cmd)
  311.         )
  312.     )
  313.     )
  314.  
  315.     (complete classact-complete)
  316. )
  317.  
  318. ; ************** END OF CLASSACT INSTALL PROCEDURE. COPY THE BLOCK ABOVE
  319. ; ************** TO YOUR CLASSACT APPLICATION INSTALLER.
  320.  
  321. ; ---------------------------------------------------------------------------
  322. (procedure set_dl_dir
  323.     (set DL_Dir (expandpath DL_Dir))
  324.     
  325.     ; verify that the download directory exists
  326.     (if (<> (exists DL_Dir) is_a_dir)
  327.         (
  328.             (makedir DL_Dir
  329.                 (prompt
  330.                     "The directory you have selected for download "
  331.                     "directory does not seem to exist.\n\n"
  332.                     "Do you want it to be created for you?")
  333.                 (help @makedir-help)
  334.                 (infos)
  335.                 (confirm)
  336.             )
  337.         )
  338.     )
  339.     (if (= (exists DL_Dir) is_a_dir)
  340.         (
  341.             (set dlstr (cat dlstr "sys:rexxc/rx THOR:rexx/bbsread/cfgglobal.br DNL " quote DL_Dir quote))
  342.             (run dlstr)
  343.             (run dlstr)
  344.         )
  345.     )
  346. )
  347.  
  348. (procedure set_ul_dir
  349.     (set UL_Dir (expandpath UL_Dir))
  350.     
  351.     ; verify that the download directory exists
  352.     (if (<> (exists UL_Dir) is_a_dir)
  353.         (
  354.             (makedir UL_Dir
  355.                 (prompt
  356.                     "The directory you have selected for upload of "
  357.                     "reply packets does not seem to exist.\n\n"
  358.                     "Do you want it to be created for you?")
  359.                 (help @makedir-help)
  360.                 (infos)
  361.                 (confirm)
  362.             )
  363.         )
  364.     )
  365.     (if (= (exists UL_Dir) is_a_dir)
  366.         (
  367.             (set ulstr (cat ulstr "sys:rexxc/rx THOR:rexx/bbsread/cfgglobal.br UPL " quote UL_Dir quote))
  368.             (run ulstr)
  369.         )
  370.     )
  371. )
  372.  
  373. (procedure create_inet_system
  374.     (set systemname
  375.         (askstring
  376.             (prompt 
  377.                     "Please enter the name of the Internet system. "
  378.                     "This is the name used internally in THOR. ")
  379.             (help "This information is needed to configure a new system "
  380.                     "for use in THOR. ")
  381.             (default "Internet")
  382.         )
  383.     )
  384.     (set UserName
  385.         (if (exists 'ENV:USERNAME' (noreq))
  386.             (getenv 'USERNAME')
  387.             (if (exists 'ENV:USER' (noreq))
  388.                 (getenv 'USER')
  389.                 'username'
  390.             )
  391.         )
  392.     )
  393.     (set UserName
  394.         (askstring
  395.             (prompt "If you get mail using SMTPd or a similar program, "
  396.                     "please enter your user name now (which is also "
  397.                     "the name of the mailfile). If you want to use "
  398.                     "THOR's POP client for collecting mail, you can "
  399.                     "leave this blank.")
  400.             (help "This information is only needed if you get mail "
  401.                     "by some other means than the method THOR supports "
  402.                     "(eg. using SMTPd).")
  403.             (default UserName)
  404.         )
  405.     )
  406.     (if (= UserName "")
  407.         ( ; Then
  408.             (set sysstr (cat sysstr "sys:rexxc/rx THOR:rexx/bbsread/cfgbbs.br BBSNAME " quote systemname quote " TYPE TCP"))
  409.         )
  410.         ( ; Else
  411.             (set sysstr (cat sysstr "sys:rexxc/rx THOR:rexx/bbsread/cfgbbs.br BBSNAME " quote systemname quote " GRAB " quote UserName quote " TYPE TCP"))
  412.         )
  413.     )
  414.     (run sysstr)
  415. )
  416.  
  417. (procedure WAITX (set X 1) ( (while (< X 100)  (set X (+ X 1)) )  ) )
  418.  
  419. (working "\n\n\n\n\n\n\n\n\n\n\n\n\nTHOR 2.3") (WAITX)
  420. (working "\n\n\n\n\n\n\n\n\n\n\n\nTHOR 2.3") (WAITX)
  421. (working "\n\n\n\n\n\n\n\n\n\n\nTHOR 2.3") (WAITX)
  422. (working "\n\n\n\n\n\n\n\n\n\nTHOR 2.3") (WAITX)
  423. (working "\n\n\n\n\n\n\n\n\nTHOR 2.3") (WAITX)
  424. (working "\n\n\n\n\n\n\n\nTHOR 2.3") (WAITX)
  425. (working "\n\n\n\n\n\n\nTHOR 2.3") (WAITX)
  426. (working "\n\n\n\n\n\nTHOR 2.3") (WAITX)
  427. (working "\n\n\n\n\nTHOR 2.3") (WAITX)
  428. (working "\n\n\n\nTHOR 2.3") (WAITX)
  429. (working "\n\n\nTHOR 2.3") (WAITX)
  430. (working "\n\nTHOR 2.3") (WAITX)
  431. (working "\n\nTHOR 2.3") (WAITX)
  432. (working "\nTHOR 2.3") (WAITX)
  433. (working "\nTHOR 2.3") (WAITX)
  434.  
  435. (working "\nTHOR 2.3\n\n\n\n\n\n\n\n\n\n\n\nby") (WAITX)
  436. (working "\nTHOR 2.3\n\n\n\n\n\n\n\n\n\n\nby") (WAITX)
  437. (working "\nTHOR 2.3\n\n\n\n\n\n\n\n\n\nby") (WAITX)
  438. (working "\nTHOR 2.3\n\n\n\n\n\n\n\n\nby") (WAITX)
  439. (working "\nTHOR 2.3\n\n\n\n\n\n\n\nby") (WAITX)
  440. (working "\nTHOR 2.3\n\n\n\n\n\n\nby") (WAITX)
  441. (working "\nTHOR 2.3\n\n\n\n\n\nby") (WAITX)
  442. (working "\nTHOR 2.3\n\n\n\n\nby") (WAITX)
  443. (working "\nTHOR 2.3\n\n\n\nby") (WAITX)
  444. (working "\nTHOR 2.3\n\n\nby") (WAITX)
  445. (working "\nTHOR 2.3\n\n\nby") (WAITX)
  446.  
  447. (working "\nTHOR 2.3\n\n\nby\n\n\n\n\n\n\n\n\nUltima Thule Software") (WAITX) 
  448. (working "\nTHOR 2.3\n\n\nby\n\n\n\n\n\n\n\nUltima Thule Software") (WAITX) 
  449. (working "\nTHOR 2.3\n\n\nby\n\n\n\n\n\n\nUltima Thule Software") (WAITX) 
  450. (working "\nTHOR 2.3\n\n\nby\n\n\n\n\n\nUltima Thule Software") (WAITX) 
  451. (working "\nTHOR 2.3\n\n\nby\n\n\n\n\nUltima Thule Software") (WAITX) 
  452. (working "\nTHOR 2.3\n\n\nby\n\n\n\nUltima Thule Software") (WAITX) 
  453. (working "\nTHOR 2.3\n\n\nby\n\n\nUltima Thule Software") (WAITX) 
  454.  
  455. (message "\n\n\nTHOR 2.3\n\n\nby\n\n\nUltima Thule Software") (WAITX) 
  456.  
  457. (welcome)
  458.  
  459. ; first reset the user level so that the novice can see what's going on
  460.     (save_default_level)
  461.     (expert_level)
  462.  
  463. ;Make assign to install from
  464.     (makeassign "Thor_Install" "" (safe))
  465.  
  466.  
  467. ;******************
  468. ;** Check Memory **
  469. ;******************
  470.  
  471. (run "Avail flush")
  472.  
  473. (set Running (run "Thor_Install:CheckForLib"))
  474.  
  475. (while (= Running 20)
  476.       (
  477.         (Message newline "Thor seem to be running, you MUST close it NOW."    
  478.                 newline "If you don't, the installation will fail!")
  479.         (run "Avail flush")
  480.         (set Running (run "Thor_Install:CheckForLib"))
  481.     )
  482. )
  483.  
  484. ;************************
  485. ;** Start Installation **
  486. ;************************
  487.  
  488. (if (exists "Thor:libs/bbsread.library" (noreq))
  489.     ( ; Then
  490.         (set end_text "Please use the UpdateThor script to\nupdate your already installed THOR.")
  491.         (abort end_text)
  492.     )
  493. )
  494.  
  495. (if (exists "BBSData:global.config" (noreq))
  496. ; Then
  497.     ((set end_text "Please use the UpdateThor script to\nupdate your already installed THOR.")
  498.     (abort end_text))
  499. )
  500.  
  501. (if (exists "envarc:THOR/BBSDataPath" (noreq))
  502.     (
  503.         (if    (askbool
  504.                    (prompt 
  505.                         "THOR seems to be already installed, "
  506.                         "do you want to install it again from scratch?")
  507.                 (help 
  508.                         "The installer script has found a previous "
  509.                         "installation of THOR.\n\n"
  510.                         "Select YES if you want it install again, otherwise NO")
  511.                 (default 1)
  512.             )
  513.             ; Then
  514.             (
  515.                 (run "delete envarc:thor all force")
  516.                 (run "delete env:thor all force")
  517.             )
  518.             ; Else
  519.             (
  520.                 (set end_text "Please use the UpdateThor script to\nupdate your already installed THOR.")
  521.                 (abort end_text)
  522.             )
  523.         )
  524.     )
  525. )
  526.  
  527. (set Thor_Dir 
  528.     (askdir
  529.         (prompt "Where would you like Thor installed?"
  530.         newline "The installer will NOT create a directory!")
  531.         (help @askdir-help)
  532.         (default "Work:")
  533.         (newpath)
  534.     )
  535. )
  536. (set Thor_Dir (expandpath Thor_Dir))
  537.  
  538. ; before we go on lets reset the user's level back to what it was
  539. (default_level)
  540.  
  541. ; verify that the Thor directory exists
  542. (if (<> (exists Thor_Dir) is_a_dir)
  543.     (
  544.         (makedir Thor_Dir
  545.             (prompt
  546.                 "The directory you have selected for Thor does not "
  547.                 "seem to exist.  Do you want us to create it for you?"
  548.             )
  549.             (help @makedir-help)
  550.             (infos)
  551.             (confirm)
  552.         )
  553.     )
  554. )
  555.  
  556. ; Create directories for the THOR installation
  557.  
  558. (makeassign "Thor" Thor_dir)
  559. (makedir "Thor:Data")
  560. (makeassign "BBSData" "Thor:data")
  561.  
  562. ;***********************************
  563. ;***** GET FIRST DISK IN HERE ******
  564. ;***********************************
  565.  
  566. ; first copy over the stuff
  567. (working #omp "Decompressing and copying Thor files.")
  568.  
  569. (run "Thor_Install:lha -a x Thor_Install:thor.lha THOR:" )
  570.  
  571. ;************************
  572. ;**  Copy the keyfile  **
  573. ;************************
  574. (if (exists "Thor_Install:THOR.key" (noreq))
  575. ; Then
  576.     (copyfiles
  577.         (source "Thor_Install:THOR.key")
  578.         (dest "THOR:")
  579.         (nogauge)
  580.     )
  581. )
  582.         
  583. ;*****************************************
  584. ;**  Copy the default arexx macro file  **
  585. ;*****************************************
  586. (if (exists "Thor_Install:THOR.macros" (noreq))
  587. ; Then
  588.     (copyfiles
  589.         (source "Thor_Install:THOR.macros")
  590.         (dest "THOR:")
  591.         (nogauge)
  592.     )
  593. )
  594.  
  595. (default_level)
  596.         
  597. ;***********************************
  598. ; Create the environment variables *
  599. ;***********************************
  600.  
  601. (set Running (run "Thor:bin/basemanager convert >con:0/0/640/200/Converting/AUTO/CLOSE/WAIT"))
  602. (if (<> 0 Running)
  603.     (
  604.         ((set end_text "Basemanager failed in setting up the env-variables.")
  605.         (abort end_text))
  606.     )
  607. )
  608.  
  609. ;******************
  610. ;** Locale stuff **
  611. ;******************
  612.  
  613. (default_level)
  614.  
  615. (set catalog
  616.    (askoptions
  617.       (prompt "What languages would you like to install ?\n"
  618.             "English is the built-in language.")
  619.       (help
  620.             "This will install locale files for other languages than English. "
  621.             "You can set the prefered language on Workbench and in Thor by"
  622.             "using the Sys:Prefs/Locale tool." newline @askchoice-help
  623.       )
  624.       (choices "Norsk" "Dansk" "Svenska" "Deutsch" "Français" "Italiano" "Nederlands")
  625.       (default 0)
  626.    )
  627. )
  628.  
  629. (makedir "thor:catalogs")
  630.  
  631. (if (bitand 1 catalog)
  632.     (copyfiles
  633.         (source "Thor_Install:catalogs/norsk")
  634.         (dest "thor:catalogs/norsk")
  635.         (all)
  636.     )
  637. )
  638.  
  639. (if (bitand 2 catalog)
  640.     (copyfiles
  641.         (source "Thor_Install:catalogs/dansk")
  642.         (dest "thor:catalogs/dansk")
  643.         (all)
  644.     )
  645. )
  646.  
  647. (if (bitand 4 catalog)
  648.     (copyfiles
  649.         (source "Thor_Install:catalogs/svenska")
  650.         (dest "thor:catalogs/svenska")
  651.         (all)
  652.     )
  653. )
  654.  
  655. (if (bitand 8 catalog)
  656.     (copyfiles
  657.         (source "Thor_Install:catalogs/deutsch")
  658.         (dest "thor:catalogs/deutsch")
  659.         (all)
  660.     )
  661. )
  662.  
  663. (if (bitand 16 catalog)
  664.     (copyfiles
  665.         (source "Thor_Install:catalogs/français")
  666.         (dest "thor:catalogs/français")
  667.         (all)
  668.     )
  669. )
  670.  
  671. (if (bitand 32 catalog)
  672.     (copyfiles
  673.         (source "Thor_Install:catalogs/italiano")
  674.         (dest "thor:catalogs/italiano")
  675.         (all)
  676.     )
  677. )
  678.  
  679. (if (bitand 64 catalog)
  680.     (copyfiles
  681.         (source "Thor_Install:catalogs/nederlands")
  682.         (dest "thor:catalogs/nederlands")
  683.         (all)
  684.     )
  685. )
  686.  
  687. ;*********************
  688. ;** reqtools.libary **
  689. ;*********************
  690.  
  691. (copylib
  692.     (prompt "Copying ReqTools library")
  693.     (help "This will copy the ReqTools library." newline @copylib-help)
  694.     (source "Thor_Install:reqtools.library")
  695.     (dest "libs:")
  696. )
  697.  
  698. ;***********
  699. ;** Fonts **
  700. ;***********
  701.     
  702. (copyfiles
  703.     (prompt "Choose the fonts to install with Thor" newline "These are not required for Thor to run" )
  704.     (help "This will copy the default font files for Thor." newline @copyfiles-help)
  705.     (source "Thor_Install:Fonts")
  706.     (dest "Fonts:")
  707.     (fonts)
  708.     (choices "Grn" "Thin609" "Thin611" "Thin711")
  709.     (confirm)
  710. )
  711.  
  712. ;**************************************
  713. ;* Install the bbsread database stuff *
  714. ;**************************************
  715.  
  716. (set failed (run "thor:bin/initarc"))
  717. (if (<> 0 failed)
  718.     (
  719.         ((set end_text "Installation failed.\nIf you received any error message,\nplease write this down and send us\na mail about the problem.")
  720.         (abort end_text))
  721.     )
  722. )
  723.  
  724. (run "thor:bin/InitCharsets")
  725.  
  726. (if (exists "Thor_Install:bin/parseqwk" (noreq))
  727.     ; Then
  728.     (
  729.         (set bbspack 1)
  730.     )
  731.     ; Else
  732.     (
  733.         (if    (askbool
  734.                 (prompt newline 
  735.                                 "Would you like to install the modules for "
  736.                                 "QWK, Fido, Hippo, Bluewave, ABBS/MBBS and Omen "
  737.                                 "to be used with Bulletin Board Systems?\n\n "
  738.                                 "(you will be able to select which modules to "
  739.                                 "install later in this installation procedure).")
  740.                 (help newline
  741.                                 "This section of the installation is dedicated "
  742.                                 "to installation of some common formats "
  743.                                 "required if you want to use THOR with BBSes.\n\n"
  744.                                 "Select YES if you want to continue with this "
  745.                                 "installation, otherwise NO")
  746.                 (default 1)
  747.             )
  748.             ; Then 
  749.             (
  750.                 (set bbsfile 
  751.                     (askfile
  752.                         (prompt (cat "Please select the BBS archive for THOR 2.3. "
  753.                                 "(Usually named '"#bbspackname"').\n\n"
  754.                                 "It will be unarchived automatically."))
  755.                         (help @askfile-help)
  756.                         (default "sys:")
  757.                     )
  758.                 )
  759.                 ; verify that the file exists
  760.                 (if (exists bbsfile)
  761.                     (
  762.                         (set runfile (cat runfile "Thor_Install:lha -a x " quote bbsfile quote " Thor_Install:"))
  763.                         (set failed (run runfile))
  764.                         (if (<> 0 failed)
  765.                             (
  766.                                 ((set failed_text "Unarchiving of the BBS archive failed.")
  767.                                     (message end_text))
  768.                             )
  769.                             ; Else
  770.                             (
  771.                                 (set bbspack 1)
  772.                             )
  773.                         )
  774.                     )
  775.                 )
  776.             )
  777.         )
  778.     )
  779. )
  780.  
  781. (if (exists "Thor_Install:bin/gettcp" (noreq))
  782.     ; Then
  783.     (
  784.         (set inetpack 1)
  785.     )
  786.     ; Else
  787.     (
  788.         (if    (askbool
  789.                 (prompt newline 
  790.                                 "Would you like to install the modules for "
  791.                                 "UUCP, SOUP, NNTP, SMTP and POP3 "
  792.                                 "to be used with Internet?\n\n"
  793.                                 "(you will be able to select which modules to "
  794.                                 "install later in this installation procedure).")
  795.                 (help newline
  796.                                 "This section of the installation is dedicated "
  797.                                 "to installation of some common formats "
  798.                                 "required if you want to use THOR with Internet.\n\n"
  799.                                 "Select YES if you want to continue with this "
  800.                                 "installation, otherwise NO")
  801.                 (default 1)
  802.             )
  803.             ; Then 
  804.             (
  805.                 (set inetfile 
  806.                     (askfile
  807.                         (prompt (cat  
  808.                                 "Please select the Internet archive for THOR 2.3\n"
  809.                                 "(Usually named '"#inetpackname"').\n\n"
  810.                                 "It will be unarchived automatically."))
  811.                         (help @askfile-help)
  812.                         (default "sys:")
  813.                     )
  814.                 )
  815.                 ; verify that the file exists
  816.                 (if (exists inetfile)
  817.                     (
  818.                         (set runfile2 (cat runfile2 "Thor_Install:lha -a x " quote inetfile quote " Thor_Install:"))
  819.                         (set failed (run runfile2))
  820.                         (if (<> 0 failed)
  821.                             (
  822.                                 ((set failed_text "Unarchiving of the Internet archive failed.")
  823.                                     (message end_text))
  824.                             )
  825.                             ; Else
  826.                             (
  827.                                 (set inetpack 1)
  828.                             )
  829.                         )
  830.                     )
  831.                 )
  832.             )
  833.         )
  834.     )
  835. )
  836.  
  837. (if (= bbspack 1)
  838.     (
  839.         (set bbs_type
  840.            (askoptions
  841.               (prompt
  842.                         "Please select which BBS modules "
  843.                         "you want to install.")
  844.               (help
  845.                     "What system type for BBS usage that should be "
  846.                     "installed can be selected here."
  847.               )
  848.  
  849.               (choices
  850.                     "QWK        - Normal QWK"
  851.                     "Fido       - Normal Fidonet"
  852.                     "BlueWave   - Normal BlueWave"
  853.                     "ABBS       - Normal ABBS"
  854.                     "ABBS_QWK   - ABBS with QWK support"
  855.                     "MBBS       - Normal MBBS"
  856.                     "Hippo/BBBS - Normal Hippo V2 and Hippo on BBBS"
  857.                     "Omen       - Normal Omen"
  858.               )
  859.               (default -1)
  860.            )
  861.         )
  862.         (copyfiles
  863.             (source "Thor_Install:scripts")
  864.             (dest "THOR:scripts")
  865.             (pattern "#?BBS#?")
  866.         )
  867.         (if (bitand 1 bbs_type)
  868.             (
  869.                 (copyfiles
  870.                     (source "Thor_Install:bin")
  871.                     (dest "THOR:bin")
  872.                     (pattern "#?QWK")
  873.                 )
  874.                 (copyfiles
  875.                     (source "Thor_Install:s/cfgqwk")
  876.                     (dest "THOR:s")
  877.                 )
  878.                 (execute "thor:s/cfgqwk")
  879.             )
  880.         )
  881.         (if (bitand 2 bbs_type)
  882.             (
  883.                 (copyfiles
  884.                     (source "Thor_Install:bin")
  885.                     (dest "THOR:bin")
  886.                     (pattern "#?FIDO")
  887.                 )
  888.                 (copyfiles
  889.                     (source "Thor_Install:s")
  890.                     (dest "THOR:s")
  891.                     (pattern "cfgfido#?")
  892.                 )
  893.                 (execute "thor:s/cfgfido")
  894.                 (execute "thor:s/cfgfido_export")
  895.             )
  896.         )
  897.         (if (bitand 4 bbs_type)
  898.             (
  899.                 (copyfiles
  900.                     (source "Thor_Install:bin")
  901.                     (dest "THOR:bin")
  902.                     (pattern "#?BLUE")
  903.                 )
  904.                 (copyfiles
  905.                     (source "Thor_Install:s/cfgblue")
  906.                     (dest "THOR:s")
  907.                 )
  908.                 (execute "thor:s/cfgblue")
  909.             )
  910.         )
  911.         (if (bitand 8 bbs_type)
  912.             (
  913.                 (copyfiles
  914.                     (source "Thor_Install:bin/packambbs")
  915.                     (dest "THOR:bin")
  916.                 )
  917.                 (copyfiles
  918.                     (source "Thor_Install:bin/parsemsg")
  919.                     (dest "THOR:bin")
  920.                 )
  921.                 (copyfiles
  922.                     (source "Thor_Install:s/cfgabbs")
  923.                     (dest "THOR:s")
  924.                 )
  925.                 (execute "thor:s/cfgabbs")
  926.             )
  927.         )
  928.         (if (bitand 16 bbs_type)
  929.             (
  930.                 (copyfiles
  931.                     (source "Thor_Install:bin")
  932.                     (dest "THOR:bin")
  933.                     (pattern "#?QWK")
  934.                 )
  935.                 (copyfiles
  936.                     (source "Thor_Install:s/cfgabbs_qwk")
  937.                     (dest "THOR:s")
  938.                 )
  939.                 (execute "thor:s/cfgabbs_qwk")
  940.             )
  941.         )
  942.         (if (bitand 32 bbs_type)
  943.             (
  944.                 (copyfiles
  945.                     (source "Thor_Install:bin/packambbs")
  946.                     (dest "THOR:bin")
  947.                 )
  948.                 (copyfiles
  949.                     (source "Thor_Install:bin/parsemsg")
  950.                     (dest "THOR:bin")
  951.                 )
  952.                 (copyfiles
  953.                     (source "Thor_Install:s/cfgmbbs")
  954.                     (dest "THOR:s")
  955.                 )
  956.                 (execute "thor:s/cfgmbbs")
  957.             )
  958.         )
  959.         (if (bitand 64 bbs_type)
  960.             (
  961.                 (copyfiles
  962.                     (source "Thor_Install:bin")
  963.                     (dest "THOR:bin")
  964.                     (pattern "#?hippo")
  965.                 )
  966.                 (copyfiles
  967.                     (source "Thor_Install:s/cfghippo")
  968.                     (dest "THOR:s")
  969.                 )
  970.                 (copyfiles
  971.                     (source "Thor_Install:s/cfgbbbs")
  972.                     (dest "THOR:s")
  973.                 )
  974.                 (execute "thor:s/cfghippo")
  975.                 (execute "thor:s/cfgbbbs")
  976.             )
  977.         )
  978.         (if (bitand 128 bbs_type)
  979.             (
  980.                 (copyfiles
  981.                     (source "Thor_Install:bin")
  982.                     (dest "THOR:bin")
  983.                     (pattern "#?omen")
  984.                 )
  985.                 (copyfiles
  986.                     (source "Thor_Install:s/cfgomen")
  987.                     (dest "THOR:s")
  988.                 )
  989.                 (execute "thor:s/cfgomen")
  990.             )
  991.         )
  992.     )
  993. )
  994.  
  995. (if (= inetpack 1)
  996.     (
  997.         (set bbs_type
  998.            (askoptions
  999.               (prompt
  1000.                         "Please select which Internet modules "
  1001.                         "you want to install.")
  1002.               (help
  1003.                     "What system type for Internet usage that should be "
  1004.                     "installed can be selected here."
  1005.               )
  1006.  
  1007.               (choices
  1008.                         "TCP/TCP_ONLINE - POP3, SMTP and NNTP"
  1009.                         "SOUP/UQWK_SOUP - Normal SOUP and SOUP w/uqwk"
  1010.                         "UUCP           - Normal UUCP"
  1011.               )
  1012.               (default -1)
  1013.            )
  1014.         )
  1015.  
  1016.         (copyfiles
  1017.             (source "Thor_Install:libs/utnet.library")
  1018.             (dest "THOR:libs")
  1019.         )
  1020.  
  1021.         (copyfiles
  1022.             (source "Thor_Install:bin/InitRFC")
  1023.             (dest "THOR:bin")
  1024.         )
  1025.  
  1026.         (copyfiles
  1027.             (source "Thor_Install:scripts")
  1028.             (dest "THOR:scripts")
  1029.             (pattern "#?UQWK#?")
  1030.         )
  1031.  
  1032.         (if (bitand 1 bbs_type)
  1033.             (
  1034.                 (copyfiles
  1035.                     (source "Thor_Install:bin")
  1036.                     (dest "THOR:bin")
  1037.                     (pattern "#?(UUCP|TCP)")
  1038.                 )
  1039.                 (copyfiles
  1040.                     (source "Thor_Install:")
  1041.                     (dest "THOR:")
  1042.                     (pattern "ConnectTHOR#?")
  1043.                 )
  1044.                 (copyfiles
  1045.                     (source "Thor_Install:s/cfgtcp")
  1046.                     (dest "THOR:s")
  1047.                 )
  1048.                 (copyfiles
  1049.                     (source "Thor_Install:s/cfgtcp_online")
  1050.                     (dest "THOR:s")
  1051.                 )
  1052.                 (execute "thor:s/cfgtcp")
  1053.                 (execute "thor:s/cfgtcp_online")
  1054.                 (set classact 1)
  1055.                 (set tcptype 1)
  1056.             )
  1057.         )
  1058.         (if (bitand 2 bbs_type)
  1059.             (
  1060.                 (copyfiles
  1061.                     (source "Thor_Install:bin")
  1062.                     (dest "THOR:bin")
  1063.                     (pattern "#?SOUP")
  1064.                 )
  1065.                 (copyfiles
  1066.                     (source "Thor_Install:s")
  1067.                     (dest "THOR:s")
  1068.                     (pattern "#?soup")
  1069.                 )
  1070.                 (makedir "THOR:unix")
  1071.                 (copyfiles
  1072.                     (source "Thor_Install:unix")
  1073.                     (dest "THOR:unix")
  1074.                     (all)
  1075.                 )
  1076.                 (execute "thor:s/cfguqwk_soup")
  1077.                 (execute "thor:s/cfgsoup")
  1078.             )
  1079.         )
  1080.         (if (bitand 4 bbs_type)
  1081.             (
  1082.                 (copyfiles
  1083.                     (source "Thor_Install:bin")
  1084.                     (dest "THOR:bin")
  1085.                     (pattern "#?UUCP")
  1086.                 )
  1087.                 (copyfiles
  1088.                     (source "Thor_Install:s/cfguucp")
  1089.                     (dest "THOR:s")
  1090.                 )
  1091.                 (execute "thor:s/cfguucp")
  1092.                 (set uucptype 1)
  1093.             )
  1094.         )
  1095.     )
  1096. )
  1097.  
  1098. (if (= classact 1)
  1099.     (
  1100.         (install-classact)
  1101.     )
  1102. )
  1103.  
  1104. ;*****************************
  1105. ;****** Install icons ********
  1106. ;*****************************
  1107.  
  1108. (set icon
  1109.     (askchoice
  1110.         (prompt
  1111.             "Please select what icon-set to install with THOR.\n")
  1112.         (help
  1113.             "If you use MagicWB on your Workbench, "
  1114.             "you might want to install the special MagicWB icons.\n\n"
  1115.             "Likewise, if you use NewIcons on your Workbench, "
  1116.             "you might want to install the special NewIcons icons.")
  1117.         (choices "Normal icons" "MagicWB icons" "NewIcons icons")
  1118.         (default 0)
  1119.     )
  1120. )
  1121.  
  1122. (if (= icon 1)
  1123.     (
  1124.         (copyfiles
  1125.             (prompt "Copying MagicWB icon files")
  1126.             (source "Thor_Install:MWBIcons")
  1127.             (dest "Thor:")
  1128.             (pattern "~(THOR.guide.info)")
  1129.             (nogauge)
  1130.         )
  1131.         (copyfiles
  1132.             (prompt "Copying MagicWB icon files")
  1133.             (source "Thor_Install:MWBIcons/THOR.guide.info")
  1134.             (dest "Thor:Docs")
  1135.             (newname "THOR.guide.info")
  1136.             (nogauge)
  1137.         )
  1138.         (copyfiles
  1139.             (prompt "Copying MagicWB icon files")
  1140.             (source "Thor_Install:MWBIcons/THOR.guide.info")
  1141.             (dest "Thor:Docs")
  1142.             (newname "ConfigTHOR.guide.info")
  1143.             (nogauge)
  1144.         )
  1145.         (copyfiles
  1146.             (prompt "Copying MagicWB icon files")
  1147.             (source "Thor_Install:MWBIcons/THOR.guide.info")
  1148.             (dest "Thor:Docs")
  1149.             (newname "ARexx.guide.info")
  1150.             (nogauge)
  1151.         )
  1152.         (copyfiles
  1153.             (prompt "Copying MagicWB icon files")
  1154.             (source "Thor_Install:MWBIcons/THOR.guide.info")
  1155.             (dest "Thor:Docs")
  1156.             (newname "BBSReadRexx.guide.info")
  1157.             (nogauge)
  1158.         )
  1159.         (copyfiles
  1160.             (prompt "Copying MagicWB icon files")
  1161.             (source "Thor_Install:MWBIcons/THOR.guide.info")
  1162.             (dest "Thor:Docs")
  1163.             (newname "THOR_Rexx.guide.info")
  1164.             (nogauge)
  1165.         )
  1166.         (copyfiles
  1167.             (prompt "Copying MagicWB icon files")
  1168.             (source "Thor_Install:MWBIcons/THOR.guide.info")
  1169.             (dest "Thor:Docs")
  1170.             (newname "Installation.guide.info")
  1171.             (nogauge)
  1172.         )
  1173.     )
  1174. )
  1175. (if (= icon 2)
  1176.     (
  1177.         (copyfiles
  1178.             (prompt "Copying NewIcons icon files")
  1179.             (source "Thor_Install:NewIcons")
  1180.             (dest "Thor:")
  1181.             (pattern "~(THOR.guide.info)")
  1182.             (nogauge)
  1183.         )
  1184.         (copyfiles
  1185.             (prompt "Copying NewIcons icon files")
  1186.             (source "Thor_Install:NewIcons/THOR.guide.info")
  1187.             (dest "Thor:Docs")
  1188.             (newname "THOR.guide.info")
  1189.             (nogauge)
  1190.         )
  1191.         (copyfiles
  1192.             (prompt "Copying NewIcons icon files")
  1193.             (source "Thor_Install:NewIcons/THOR.guide.info")
  1194.             (dest "Thor:Docs")
  1195.             (newname "ConfigTHOR.guide.info")
  1196.             (nogauge)
  1197.         )
  1198.         (copyfiles
  1199.             (prompt "Copying NewIcons icon files")
  1200.             (source "Thor_Install:NewIcons/THOR.guide.info")
  1201.             (dest "Thor:Docs")
  1202.             (newname "ARexx.guide.info")
  1203.             (nogauge)
  1204.         )
  1205.         (copyfiles
  1206.             (prompt "Copying NewIcons icon files")
  1207.             (source "Thor_Install:NewIcons/THOR.guide.info")
  1208.             (dest "Thor:Docs")
  1209.             (newname "BBSReadRexx.guide.info")
  1210.             (nogauge)
  1211.         )
  1212.         (copyfiles
  1213.             (prompt "Copying NewIcons icon files")
  1214.             (source "Thor_Install:NewIcons/THOR.guide.info")
  1215.             (dest "Thor:Docs")
  1216.             (newname "THOR_Rexx.guide.info")
  1217.             (nogauge)
  1218.         )
  1219.         (copyfiles
  1220.             (prompt "Copying NewIcons icon files")
  1221.             (source "Thor_Install:NewIcons/THOR.guide.info")
  1222.             (dest "Thor:Docs")
  1223.             (newname "Installation.guide.info")
  1224.             (nogauge)
  1225.         )
  1226.     )
  1227. )
  1228.  
  1229. (if (exists "env:sys/def_drawer.info" (noreq))
  1230.     (copyfiles
  1231.         (prompt "Copying default drawer icon")
  1232.         (help "This will copy the default drawer icon." newline @copyfiles-help)
  1233.         (source "env:sys/def_drawer.info")
  1234.         (dest "Thor:")
  1235.         (newname "Docs.info")
  1236.         (infos)
  1237.     )
  1238. )
  1239.  
  1240.  
  1241.  
  1242. ;*****************************
  1243. ;* Simple configuration here *
  1244. ;*****************************
  1245.  
  1246. (if (= tcptype 1)
  1247.     ; then
  1248.     (
  1249.         (if    (askbool
  1250.                 (prompt newline "The following section in this installation "
  1251.                         "is used for setting up parameters needed "
  1252.                         "for use of the TCP types (POP3/NNTP/SMTP) "
  1253.                         "for Internet mail and news. This configuration is optional "
  1254.                         "but must be set later if you do not do this now.\n\n"
  1255.                         "Do you want to proceed with this?")
  1256.                 (help #installtext)
  1257.                    (default 1)
  1258.             )
  1259.         )
  1260.         ; Then 
  1261.         (
  1262.             (set DL_Dir 
  1263.                     (askdir
  1264.                         (prompt "Select the default directory where MIME and uudecoded "
  1265.                                 "binaries will be stored. If you collect mail using SMTPd, "
  1266.                                 "this is the directory where your mailfile is stored."
  1267.                         (help @askdir-help)
  1268.                         (default "Work:")
  1269.                         (newpath)
  1270.                     )
  1271.                 )
  1272.             )
  1273.             (set_dl_dir)
  1274.             (create_inet_system)
  1275.             (if    (askbool
  1276.                     (prompt newline 
  1277.                             "If you like to set up some parameters like your "
  1278.                             "real name, newsserver, mailserver etc. you can "
  1279.                             "do this now. "
  1280.                             "Do you want to proceed with this?")
  1281.                     (help #installtext)
  1282.                        (default 1)
  1283.                 )
  1284.             )
  1285.             ; Then 
  1286.             (
  1287.                 (set typecfg (cat typecfg "THOR:bin/cfgtcp " quote systemname quote))
  1288.                 (set running (run typecfg))
  1289.                 (if    (askbool
  1290.                         (prompt newline 
  1291.                                 "Would you like to order a list of available newsgroups "
  1292.                                 "from the configured newsserver for the next time you "
  1293.                                 "connect?")
  1294.                         (help #installtext)
  1295.                            (default 1)
  1296.                     )
  1297.                 )
  1298.                 ; Then 
  1299.                 (
  1300.                     (set ConfList (cat 'WRITEBREVENT BBSNAME ' tick '"' systemname '"' tick ' EVENT EVE_CONFLIST\n'))
  1301.                     (set adrcmd (cat 'address command 'quote'Thor:bin/LoadBBSRead'quote'\n'))
  1302.                     (textfile
  1303.                         (dest 't:getconflist.rexx')
  1304.                             (append '/* Order a list of newsgroups */\n\n')
  1305.                             (append adrcmd)
  1306.                             (append 'WaitForPort BBSREAD\n')
  1307.                             (append 'address BBSREAD\n')
  1308.                             (append '\nEVE_CONFLIST = 6\n')
  1309.                             (append ConfList)
  1310.                     )
  1311.  
  1312.                     (if (<> 0 (run 'rx t:getconflist.rexx'))
  1313.                         (run 'sys:rexxc/rx t:getconflist.rexx')
  1314.                     )
  1315.                     (message #endtcpcfgtext)
  1316.                 )
  1317.             )
  1318.         )
  1319.     )
  1320.     ; else
  1321.     (if    (askbool
  1322.         (
  1323.             (prompt newline "The following section in this installation "
  1324.                             "is used for setting up a download and an upload "
  1325.                             "directory for message packets.  This section is "
  1326.                             "optional, but the directories needs to be "
  1327.                             "set in THOR if you do not set them up here.\n\n"
  1328.                             "Do you want to proceed with this?")
  1329.             (help #installtext)
  1330.             (default 1)
  1331.             )
  1332.         )
  1333.         ; Then 
  1334.         (
  1335.             (set DL_Dir 
  1336.                     (askdir
  1337.                         (prompt "Where do you keep your downloaded message packets?\n\n"
  1338.                                 "This is usually the download directory "
  1339.                                 "configured in the communication program you "
  1340.                                 "use."
  1341.                         (help @askdir-help)
  1342.                         (default "Work:")
  1343.                         (newpath)
  1344.                     )
  1345.                 )
  1346.             )
  1347.             (set_dl_dir)
  1348.     
  1349.             (set UL_Dir 
  1350.                     (askdir
  1351.                         (prompt "Where would you like to keep any reply "
  1352.                                 "message packets that THOR generates?\n\n"
  1353.                                 "This is usually the upload directory "
  1354.                                 "configured in your communication program."
  1355.                         (help @askdir-help)
  1356.                         (default "Work:")
  1357.                         (newpath)
  1358.                     )
  1359.                 )
  1360.             )
  1361.             (set_ul_dir)
  1362.         )
  1363.     )
  1364. )
  1365.  
  1366. ;*****************************
  1367. ;***** WE ARE ALMOST DONE ****
  1368. ;*****************************
  1369.  
  1370. ; make sure that default-dir is pointing to the right place
  1371. (set @default-dest Thor_Dir)
  1372.     
  1373. (makeassign "Thor_Install")     
  1374. (makeassign "BBSData")
  1375. (makeassign "Thor_Disk" (safe))
  1376.  
  1377. ; final message for our viewers
  1378.     (set end_text (cat "Hope you like THOR! Don't hesitate to "
  1379.                     "send us comments, bugreports and suggestions."))
  1380.  
  1381. ; now for the exit
  1382.     (exit end_text)
  1383.  
  1384.